package com.app.reading;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class Main3Activity extends AppCompatActivity {

    Button girl;
    Button boy;
    TextView txt;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main3);
//        ActionBar actionbar =getSupportActionBar();
//        if(actionbar!=null){
//            actionbar.hide();
//        }
        initView();
    }

    private void initView() {
        girl=this.findViewById(R.id.girl);
        boy=this.findViewById(R.id.boy);
        txt=this.findViewById(R.id.txt);
        girl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent ch=new Intent();
                ch.setClass(Main3Activity.this,Main4Activity.class);
                startActivity(ch);
            }
        });
        boy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent ch=new Intent();
                ch.setClass(Main3Activity.this,Main4Activity.class);
                startActivity(ch);
            }
        });
        txt.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent ch=new Intent();
                ch.setClass(Main3Activity.this,Main4Activity.class);
                startActivity(ch);
            }
        });
    }
}
